package com.lry.pda.bottom.mysql.innodb.compact;

import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.List;

public class TestTable {

    public static void main(String[] args) {
        
        List<FieldFrame> fieldFrameList = new ArrayList<>();
        FieldFrame fieldFrame = new FieldFrame("id",Long.class,"主键id",0,true,true);
        fieldFrameList.add(fieldFrame);
        fieldFrame = new FieldFrame("age",Integer.class,"年龄",0,false,true);
        fieldFrameList.add(fieldFrame);
        fieldFrame = new FieldFrame("name",String.class,"姓名",10,false,true);
        fieldFrameList.add(fieldFrame);
        TableFrame tableFrame = new TableFrame("user_info","id",fieldFrameList);

        TableCache.createTable(tableFrame);
        //INSERT INTO user_info (`id`, `age`, `name`) VALUES ('1', '10', 'lry');

        System.out.println("你好".length());
        System.out.println("你好".getBytes(StandardCharsets.UTF_8).length);

    }

}
